					<form id="editForm" class="panel-body form-horizontal form-padding">
							<input type="hidden"  name="#(formModelName).id" class="form-control" value="#(o?o.id:'')">
							<input type="hidden"  name="#(formModelName).type" class="form-control" value="#(type)">
							<div class="form-group">
			                    <label class="col-md-2 control-label">申请编号</label>
			                    <div class="col-md-4">
			                        <input type="text" class="form-control"  value="#(o?o.bankaccount_num:'')" disabled>
			                    </div>
			                </div>
							<div class="form-group">
			                    <label class="col-md-2 control-label">申请人</label>
			                    <div class="col-md-4">
			                    	<input type="hidden"  name="#(formModelName).userid" class="form-control"  value="#if(o)#(o.userid)#else#(user.id)#end">
			                        <input type="text"  name="#(formModelName).applyer_name" class="form-control"  value="#if(o)#(o.applyer_name)#else#(user.name)#end" readonly>
			                    </div>
			                    <label class="col-md-1 control-label">部门</label>
			                    <div class="col-md-4">
			                        <input type="hidden"  name="#(formModelName).org_id" class="form-control"  value="#if(o)#(o.org_id)#else#(org.id)#end">
			                        <input type="text"  name="#(formModelName).org_name" class="form-control"  value="#if(o)#(o.org_name)#else#(org.name)#end" readonly>
			                    </div>
			                </div>
		                	#if(type=="2"||type=="3"||type=="4"||type=="5")
		                		<div class="form-group">
				                    <label class="col-md-2 control-label">户名</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).account_name" class="form-control"  value="#(o?o.account_name:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入户名</small>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-2 control-label">帐号</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).account_num" class="form-control"  value="#(o?o.account_num:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入帐号</small>
				                    </div>
				                </div>
		                	#end
			                <div class="form-group">
			                    <label class="col-md-2 control-label">开户银行</label>
			                    <div class="col-md-4">
			                        <input type="text"  name="#(formModelName).open_bank" class="form-control"  value="#(o?o.open_bank:'')" #if(view=='detail') readonly #end>
			                        <small class="help-block">请输入开户银行</small>
			                    </div>
			                    <label class="col-md-1 control-label">开户性质</label>
			                    <div class="col-md-4">
			                        <input type="text"  name="#(formModelName).account_type" class="form-control"  value="#(o?o.account_type:'')" #if(view=='detail') readonly #end>
			                        <small class="help-block">请输入开户性质</small>
			                    </div>
			                </div>
			                #if(type=="1"||type=="2"||type=="3"||type=="6")
			                	<div class="form-group">
				                    <label class="col-md-2 control-label">银行预留财务印鉴</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).finance_seal" class="form-control"  value="#(o?o.finance_seal:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入银行预留财务印鉴</small>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-2 control-label">银行预留法人印鉴</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).legel_seal" class="form-control"  value="#(o?o.legel_seal:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入银行预留法人印鉴</small>
				                    </div>
				                </div>
				            #end
				            #if(type=="3")
				                <div class="form-group">
				                    <label class="col-md-2 control-label">银行预留财务印鉴变更为</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).change_to_finance_seal" class="form-control"  value="#(o?o.change_to_finance_seal:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入变更财务印鉴</small>
				                    </div>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-2 control-label">银行预留法人印鉴变更为</label>
				                    <div class="col-md-9">
				                        <input type="text"  name="#(formModelName).change_to_legal_seal" class="form-control"  value="#(o?o.change_to_legal_seal:'')" #if(view=='detail') readonly #end>
				                        <small class="help-block">请输入变更法人印鉴</small>
				                    </div>
				                </div>
				            #end
				            #if(type=="1")
				            	#set(reason="开户原因")
				            #elseif(type=="2")
				            	#set(reason="销户原因")
				            #elseif(type=="3")
				            	#set(reason="变更理由")
				            #elseif(type=="4")
				            	#set(reason="开通理由")
				            #elseif(type=="5")
				            	#set(reason="注销理由")
				            #elseif(type=="6")
				            	#set(reason="开通理由")
				            #end
			                <div class="form-group">
			                    <label class="col-md-2 control-label">#(reason)</label>
			                    <div class="col-md-9">
			                        <textarea rows="8" name="#(formModelName).reason" class="form-control" #if(view=='detail') readonly #end>#(o?o.reason:'')</textarea>
			                        <small class="help-block">请输入#(reason)</small>
			                    </div>
			                </div>
			                #if(type=="4"||type=="5"||type=="6")
			                	<div class="form-group">
				                    <label class="col-md-2 control-label">设置审批流程</label>
				                </div>
				                <div class="form-group">
				                    <label class="col-md-2 control-label">提交付款</label>
				                    <div class="col-md-2">
					                    <div class="input-group mar-btm col-md-12">
						    	    		<input type="hidden"  name="#(formModelName).audit1_username" id="audit1_username" class="form-control"  value="#(o?o.audit1_username:'')">
						    			    <input type="text"  name="#(formModelName).audit1_name" id="audit1_name" class="form-control"  value="#(o?o.audit1_name:'')" readonly>
						    			    #if(view!="detail")
						    			    	<span class="input-group-btn">
						    		            	<button class="btn btn-primary" type="button" onclick="openSlectUserUseRoleCashier('#if(o)#(o.org_id)#else#(org.id)#end')">选择</button>
						    		            </span>
						    		        #end
						    		    </div>
						    		</div>
						    		<label class="col-md-1 control-label">一级授权</label>
				                    <div class="col-md-2">
					                    <div class="input-group mar-btm col-md-12">
						                    <input type="hidden"  name="#(formModelName).audit2_username" id="audit2_username" class="form-control"  value="#(o?o.audit2_username:'')">
						    			    <input type="text"  name="#(formModelName).audit2_name" id="audit2_name" class="form-control"  value="#(o?o.audit2_name:'')" readonly>
						    			    #if(view!="detail")
						    			    	<span class="input-group-btn">
						    		            	<button class="btn btn-primary" type="button" onclick="openSlectUserUseRoleFinanceManager('#if(o)#(o.org_id)#else#(org.id)#end')">选择</button>
						    		            </span>
						    		        #end
						    		    </div>
						    		</div>
						    		<label class="col-md-1 control-label">二级授权</label>
				                    <div class="col-md-2">
					                    <div class="input-group mar-btm col-md-12">
						                    <input type="hidden"  name="#(formModelName).audit3_username" id="audit3_username" class="form-control"  value="#(o?o.audit3_username:'')">
						    			    <input type="text"  name="#(formModelName).audit3_name" id="audit3_name" class="form-control"  value="#(o?o.audit3_name:'')" readonly>
						    			    #if(view!="detail")
						    			    	<span class="input-group-btn">
						    		            	<button class="btn btn-primary" type="button" onclick="openSlectUserUseRoleTopManager('#if(o)#(o.org_id)#else#(org.id)#end')">选择</button>
						    		            </span>
						    		        #end
						    		    </div>
						    		</div>
				                </div>
			                #end
				                <div class="form-group">
				                    <label class="col-md-2 control-label">备注</label>
				                    <div class="col-md-9">
				                        <textarea rows="8" name="#(formModelName).des" class="form-control" #if(view=='detail') readonly #end>#(o?o.des:'')</textarea>
				                        <small class="help-block">请输入备注</small>
				                    </div>
				                </div>
				            #@installFlowCCButton()
		                	#if(view=='edit')
		                		<div class="panel-footer">
				                    <div class="row">
				                        <div class="col-sm-8 col-sm-offset-3">
				                            <button class="btn btn-warning" type="reset" #if(view=='detail') disabled #end>重置</button>
				                            <button class="btn btn-primary" type="submit" #if(view=='detail') disabled #end>保存</button>
				                        </div>
				                    </div>
				                </div>
				            #else
			            	
				            #end
		            </form>
<script>
function openSlectUserUseRoleCashier(orgid){
//	pointLion.selectOneUser(orgid,function(data){
//		$("#audit1_username").val(data.idData);
//		$("#audit1_name").val(data.nameData);
//	});
	pointLion.selectOneUser(encodeURIComponent("root"),function(data){
		$("#audit1_username").val(data.idData);
		$("#audit1_name").val(data.nameData);
	});
}
function openSlectUserUseRoleFinanceManager(orgid){
//	pointLion.selectOneUser(orgid,function(data){
//		$("#audit2_username").val(data.idData);
//		$("#audit2_name").val(data.nameData);
//	});
	pointLion.selectOneUser(encodeURIComponent("root"),function(data){
		$("#audit2_username").val(data.idData);
		$("#audit2_name").val(data.nameData);
	});
}
function openSlectUserUseRoleTopManager(orgid){
//	pointLion.selectOneUser(orgid,function(data){
//		$("#audit3_username").val(data.idData);
//		$("#audit3_name").val(data.nameData);
//	});
	pointLion.selectOneUser(encodeURIComponent("root"),function(data){
		$("#audit3_username").val(data.idData);
		$("#audit3_name").val(data.nameData);
	});
}
</script>